﻿using System.Configuration;
using System.Web.Mvc;
using System.Web.Routing;
using Chowpoo.Util;

namespace CourseSystem.Common.Helpers
{
    public class CommonHelper
    {
        public static readonly int PageSize = 10;
        public static readonly string StudentDefPassWord = "123456";
        public static readonly string Domain;
        static CommonHelper()
        {
            PageSize = ConfigurationManager.AppSettings["PageSize"].CheckInt(10);
            Domain = ConfigurationManager.AppSettings["Domain"].TrimEnd('/') + '/';
            StudentDefPassWord = ConfigurationManager.AppSettings["StudentDefPassWord"] ?? StudentDefPassWord;
        }
    }
}